/**
*  Copyright 2002 Sun Microsystems, Inc. All rights reserved.
*/

/**
 *Title Circle
 * @author xiaofei
 *@version 1.0
 */
package circle;

public class Circle {

	private double radius;
	private String color;
	
	public Circle()
	{
		this.radius = 1.0;
		this.color = "red";
	}
	
	public Circle(double radius)
	{
		this.radius = radius;
		this.color = "red";
	}
	
	public Circle(double radius, String color)
	{
		this.radius = radius;
		this.color = color;
	}
	
	public void setRadius(double radius)
	{
		this.radius = radius;
	}
	
	public void setColor(String color)
	{
		this.color = color;
	}
	
	public double getRadius()
	{
		return this.radius;
	}
	
	public String getColor()
	{
		return this.color;
	}
	
	public double getArea()
	{
		return radius*radius*Math.PI;
	}
	
	public String toString()
	{
		return "Circle's radius is " + this.radius + " color is " + this.color;
	}
}
